import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from api import register_blueprints  # 从api包导入蓝图
from flask_cors import CORS
from flask import Flask

# auto = ThsAuto()
app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False
CORS(app)
# 注册API蓝图
register_blueprints(app)

client_path = None

if __name__ == '__main__':
    host = '0.0.0.0'
    port = 5002
    app.run(host=host, port=port)
